package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ly.common.core.domain.BaseVo;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 金蝶-成本调整单
 * </p>
 * @author WuZH
 * @since 2024-07-30
 */
@Getter
@Setter
@TableName ("erp_king_cost_adjustment_info")
@ApiModel (value = "KingCostAdjustmentEntity对象", description = "金蝶-成本调整单")
public class KingCostAdjustmentEntity extends BaseVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ("id")
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty ("单据编号")
    @TableField ("doc_no")
    private String docNo;

    @ApiModelProperty ("日期")
    @TableField ("biz_time")
    private Date bizTime;

    @ApiModelProperty ("物料编码")
    @TableField ("material_code")
    private String materialCode;

    @ApiModelProperty ("调整金额")
    @TableField ("adjustment_amount")
    private String adjustmentAmount;

    @ApiModelProperty ("单据类型")
    @TableField ("doc_type_code")
    private String docTypeCode;

    @ApiModelProperty ("类型；1：入库成本调整单；2：出库成本调整单")
    @TableField ("type")
    private Integer type;

    @ApiModelProperty ("批号")
    @TableField ("batch_number")
    private String batchNumber;

    @ApiModelProperty ("来源库存单据")
    @TableField ("source_inventory_doc_type_code")
    private String sourceInventoryDocTypeCode;

    @ApiModelProperty ("来源库存行号")
    @TableField ("source_inventory_doc_type_line")
    private String sourceInventoryDocTypeLine;

    @ApiModelProperty ("来源应付单据")
    @TableField ("source_payable_doc_type_code")
    private String sourcePayableDocTypeCode;

    @ApiModelProperty ("来源应付行号")
    @TableField ("source_payable_doc_type_line")
    private String sourcePayableDocTypeLine;

    @ApiModelProperty ("调整原因")
    @TableField ("adjustment_reason")
    private String adjustmentReason;

    @ApiModelProperty ("所属组织")
    @TableField ("dept_id")
    private String deptId;

    @ApiModelProperty ("生成出库成本调整单时，取的出库明细行Id，防止重复")
    @TableField ("inventory_id")
    private String inventoryId;

    @ApiModelProperty ("创建人Id")
    @TableField ("create_by")
    private String createBy;

    @ApiModelProperty ("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField ("create_time")
    private Date createTime;

    @ApiModelProperty ("更新人Id")
    @TableField ("update_by")
    private String updateBy;

    @ApiModelProperty ("更新时间")
    @TableField ("update_time")
    private Date updateTime;

    @ApiModelProperty ("是否可用")
    @TableField ("is_used")
    private Integer isUsed;

    @TableField (exist = false)
    private String docTypeName;

    @TableField (exist = false)
    private String materialName;

    @TableField (exist = false)
    private String model;


}
